<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateWorshipBibleChaptersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('worship_bible_chapters', function (Blueprint $table) {
            $table->increments('id')->comment('ID');
            $table->integer('volume_id')->comment('卷');
            $table->integer('chapter_id')->comment('章');
            $table->integer('verse_id')->comment('节');
            $table->string('lection')->nullable()->comment('经文');
            $table->char('sound_begin', 10)->nullable()->comment('播放开始时间');
            $table->char('sound_end', 10)->nullable()->comment('播放结束时间');
            $table->timestamp('created_at')->nullable()->comment('创建时间');
            $table->timestamp('updated_at')->nullable()->comment('更新时间');
            $table->softDeletes()->comment('删除时间');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('worship_bible_chapters');
    }
}
